From: Adel Gadllah Date: Sun, 16 Jan 2011 12:34:31 +0000 (+0100) Subject: altTab: Query the correct monitor's size X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9255 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f4572eedd03ea93d7a3651b1177a5b355223e73b;p=gnome-shell.git altTab: Query the correct monitor's size We always display the appSwitcher on the primary monitor, so always query for its size rather than that of the focused one. --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index b117fc840..aa0e7e246 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -875,9 +875,9 @@ AppSwitcher.prototype = { totalSpacing += this._separator.width + this._list.spacing; // We just assume the whole screen here due to weirdness happing with the passed width - let focus = global.get_focus_monitor(); + let primary = global.get_primary_monitor(); let parentPadding = this.actor.get_parent().get_theme_node().get_horizontal_padding(); - let availWidth = focus.width - parentPadding - this.actor.get_theme_node().get_horizontal_padding(); + let availWidth = primary.width - parentPadding - this.actor.get_theme_node().get_horizontal_padding(); let height = 0; for(let i = 0; i < iconSizes.length; i++) {